package Book01.User;

import Book01.Book;
import Book01.BookList;
import Book01.Operation.IOperation;

public abstract class User {
    protected  String name;
    IOperation[] iOperations;
    Book book = new Book();
    BookList bookList = new BookList();
    public User() {
    }

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice,BookList bookList){
        iOperations[choice].work(bookList);
    }
}
